demo: Ignore deprecated HarfBuzz API
authorEmmanuele Bassi <ebassi@gnome.org>
Fri, 12 Apr 2019 17:42:38 +0000 (18:42 +0100)
committerEmmanuele Bassi <ebassi@gnome.org>
Sat, 13 Apr 2019 13:30:09 +0000 (14:30 +0100)
We should avoid warnings just because we're building against bleeding
edge HarfBuzz.

demos/gtk-demo/font_features.c

index 8d647fc946b7c46e76b7b4e7704eb545d7867224..8299b6461cc4f20b47e1f6106e58452aeae05a25 100644 (file)
@@ -495,7 +495,11 @@ update_script_combo (void)
   gboolean have_active = FALSE;
 
   lang = gtk_font_chooser_get_language (GTK_FONT_CHOOSER (font));
+
+  G_GNUC_BEGIN_IGNORE_DEPRECATIONS
   active = hb_ot_tag_from_language (hb_language_from_string (lang, -1));
+  G_GNUC_END_IGNORE_DEPRECATIONS
+
   g_free (lang);
 
   store = gtk_list_store_new (4, G_TYPE_STRING, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_UINT);